<!--
 * @Author: liaoxing
 * @Date: 2021-08-13 10:21:54
 * @LastEditors: liaoxing
 * @LastEditTime: 2021-08-13 10:53:11
 * @Description: file content
 * @FilePath: \bigScreen\src\dev-core\view\login.vue
-->
<template>
  <div class="login">
    <!-- <el-button type="success" @click='setToken'>login</el-button> -->
  </div>
</template>

<script>
import sessionStorage from '@base/utils/sessionStorage'
import router from '@core/router'
import routerHelper from '@core/utils/routerHelper'
export default {
  name: 'login',
  created () {
    this.setToken()
  },
  methods: {
    async setToken () {
      sessionStorage.set('token', '9999999')
      await routerHelper(router)
      this.$router.push({name: 'main'})
    }
  }
}
</script>

<style lang="less">
.login{

}
</style>